/**
 * @param {number} num
 * @return {boolean}
*/
var isPerfectSquare = function(num) {
  for(let i = 1; i < 50000; i++) {
    if(num == i * i) return true;
  }
  return false;
};
let num = 16;
console.log(isPerfectSquare(num));
num = 14;
console.log(isPerfectSquare(num));
